package com.jeesite.modules.pt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 新手任务Entity
 * @author 李寒冰
 * @version 2025-07-09
 */
@Table(name="pt_xinshou", alias="a", label="新手任务信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="type", attrName="type", label="任务类型"),
		@Column(name="num", attrName="num", label="任务数量", isUpdateForce=true),
		@Column(name="url", attrName="url", label="视频地址", comment="视频地址（图片地址）"),
		@Column(name="jine", attrName="jine", label="任务奖励总金额", isUpdateForce=true),
		@Column(name="name", attrName="name", label="任务名称", queryType=QueryType.LIKE),
		@Column(name="beizhu", attrName="beizhu", label="任务说明"),
		@Column(name="is_open", attrName="isOpen", label="是否开启 1是 0否"),
		@Column(name="xuhao", attrName="xuhao", label="序号", isUpdateForce=true),
	}, orderBy="a.xuhao"
)
public class PtXinshou extends DataEntity<PtXinshou> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 任务类型
	private Long num;		// 任务数量
	private String url;		// 视频地址（图片地址）
	private Double jine;		// 任务奖励总金额
	private String name;		// 任务名称
	private String beizhu;		// 任务说明
	private String isOpen;		// 是否开启 1是 0否
	private Integer xuhao;		// 序号

	public PtXinshou() {
		this(null);
	}
	
	public PtXinshou(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="任务类型长度不能超过 255 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Long getNum() {
		return num;
	}

	public void setNum(Long num) {
		this.num = num;
	}
	
	@Size(min=0, max=255, message="视频地址长度不能超过 255 个字符")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public Double getJine() {
		return jine;
	}

	public void setJine(Double jine) {
		this.jine = jine;
	}
	
	@Size(min=0, max=255, message="任务名称长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Size(min=0, max=255, message="任务说明长度不能超过 255 个字符")
	public String getBeizhu() {
		return beizhu;
	}

	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	
	@Size(min=0, max=2, message="是否开启 1是 0否长度不能超过 2 个字符")
	public String getIsOpen() {
		return isOpen;
	}

	public void setIsOpen(String isOpen) {
		this.isOpen = isOpen;
	}
	
	public Integer getXuhao() {
		return xuhao;
	}

	public void setXuhao(Integer xuhao) {
		this.xuhao = xuhao;
	}
	
}